<ng-container [ngSwitch]="status?.phase">
  <!-- Loading -->
  <mat-spinner
    *ngSwitchCase="STATUS_TYPE.WAITING"
    diameter="24"
    [matTooltip]="status?.message"
  ></mat-spinner>

  <mat-spinner
    *ngSwitchCase="STATUS_TYPE.TERMINATING"
    diameter="24"
    [matTooltip]="status?.message"
  ></mat-spinner>

  <mat-icon
    *ngSwitchDefault
    [ngClass]="getCssClasses()"
    [matTooltip]="getTooltip()"
  >
    {{ getIcon() }}
  </mat-icon>
</ng-container>
